package cn.cool.service;

import cn.cool.dto.UserRegisterDTO;
import cn.cool.entity.User;
import cn.cool.result.ResponseResult;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author LiuH
 * @since 2021-01-23
 */
public interface UserService extends IService<User> {

    //登录
    Object login(User user);

    //注册
    Object register(UserRegisterDTO user);

    //登出
    Object logOut(HttpServletRequest request);

    //设置个人信息
    Object setUserInfo(HttpServletRequest request, User user, MultipartFile file);

}
